package com.hxzy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hxzy.entity.SysUser;
import com.hxzy.service.SysUserService;
import com.hxzy.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

/**
* @author 11452
* @description 针对表【sys_user(用户信息表)】的数据库操作Service实现
* @createDate 2023-09-26 09:44:31
*/
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
    implements SysUserService{


    @Override
    public SysUser findByUserName(String username) {
        LambdaQueryWrapper<SysUser> queryWrapper=new LambdaQueryWrapper<>();
        queryWrapper.eq(SysUser::getUserName,username);

        return this.baseMapper.selectOne(queryWrapper);
    }
}




